package com.bailiban.entity;


import java.io.Serializable;

/**
 * (Traveller)实体类
 *
 * @author zhulang
 * @since 2020-10-27 11:07:31
 */
public class Traveller implements Serializable {
    private static final long serialVersionUID = -86948734200206497L;

    private Integer id;
    /**
     * 姓名
     */
    private String name;
    /**
     * 性别
     */
    private String sex;
    /**
     * 电话号码
     */
    private String phonenum;
    /**
     * 证件类型 0身份证 1护照 2军官证
     */
    private Integer credentialstype;
    private String credentialstypeStr;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhonenum() {
        return phonenum;
    }

    public void setPhonenum(String phonenum) {
        this.phonenum = phonenum;
    }

    public Integer getCredentialstype() {
        return credentialstype;
    }

    public void setCredentialstype(Integer credentialstype) {
        this.credentialstype = credentialstype;
    }

    public String getCredentialstypeStr() {
//        证件类型 0身份证 1护照 2军官证
        if (this.credentialstype == 0) {
            this.credentialstypeStr = "身份证";
        } else if (this.credentialstype == 1) {
            this.credentialstypeStr = "护照";
        } else if (this.credentialstype == 2) {
            this.credentialstypeStr = "军官证";
        } else {
            this.credentialstypeStr = "证件异常";
        }
        return credentialstypeStr;
    }

    public void setCredentialstypeStr(String credentialstypeStr) {
        this.credentialstypeStr = credentialstypeStr;
    }

    public String getCredentialsnum() {
        return credentialsnum;
    }

    public void setCredentialsnum(String credentialsnum) {
        this.credentialsnum = credentialsnum;
    }

    public Integer getTravellertype() {
        return travellertype;
    }

    public void setTravellertype(Integer travellertype) {
        this.travellertype = travellertype;
    }

    public String getTravellertypeStr() {
//        旅客类型(人群) 0 成人 1 儿童
        if (this.travellertype == 0) {
            this.travellertypeStr = "成人";
        } else if (this.travellertype == 1) {
            this.travellertypeStr = "儿童";
        } else {
            this.travellertypeStr = "类型错误";
        }
        return travellertypeStr;
    }

    public void setTravellertypeStr(String travellertypeStr) {
        this.travellertypeStr = travellertypeStr;
    }

    /**
     * 证件号码
     */
    private String credentialsnum;
    /**
     * 旅客类型(人群) 0 成人 1 儿童
     */
    private Integer travellertype;
    private String travellertypeStr;

}